package com.xkdx.caipiao.presistence.login;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class LoginAction extends AbsAction {
	String user_login_name, user_pass,signcode;
	public LoginAction(String user_login_name,String user_pass,String signcode) {
		this.user_login_name=user_login_name;
		this.user_pass=user_pass;
		this.signcode=signcode;
		
	}

	@Override
	public void constructRequest() {
		
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("user_login_name",user_login_name );
		map.put("user_pass", user_pass);
		map.put("signcode", signcode);

		String json = constructJson(map);
		Parameter parameter = new Parameter("User", "Login", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);
	}
}
